/* 
 * 
 * constants used throughout the code
 */

// the value of these constants are also used as the classname for the unit DIVs
// so you must sync with game.css in order to have consistency
GAMEUNITTYPE = {
    GOODY: 'goody',
    WALL: 'wall',
    FAKEWALL: 'fakewall',
    BOMB: 'bomb',
    HERO: 'hero',
    MONSTER: 'badguy1'
}

// these subtype values are used in the name of the image used for the goody in the background-image attribute.

GOODYSUBTYPE = {
    EXIT: 'exit',
    LIFE: 'life',
    BOMB: 'bomb',
    SPEED: 'speed',
    EXPLOSIONLENGTH: 'explosionLength',
    PASSOVERFAKEWALLS: 'passoverfakewalls'
}

// global variables
game.standardWidth=50;
game.standardHeight=50;
game.standardCost = 3;

game.worldWidth=null;
game.worldHeight=null;

game.bombTimeOut=3850;
game.bombEffectDuration = 300;
game.bombDefaultExplosionLength=1;

game.headless=false;


game.exit = null;
game.heart = null;

game.type='campaign'; // could it deathmatch, deathmatchwithzombies, etc ...
game.speed = 26; // interval for calling heartbeat for the game , in milliseconds

game.heroes = [];
game.fakeWalls = [];
game.zones = [];
game.walls = [];
game.goodies = [];
game.activeBombs=[];
game.level = 1;
game.bgsound = true;
game.pause = false;

// end global variables declaration and initialization